$("#asubmit").click(function(){
	var name=$("#uname").val();
	var pwd=$("#upwd").val();
	var actionName="login";
	$("#msg1").html("");
	$("#msg2").html("");
	if(isEmpty(name)||name.trim()==""){	
		$("#msg1").html("用户名未输入");
		return false;
	}
	
	if(isEmpty(pwd)||pwd.trim()==""){	
		$("#msg2").html("用户密码未输入");
		return false;
	}
	
	$.ajax({
		type:"post",
		url:"userInf",
		data:{
			user_id:name,
			password:pwd,
			//actionName:actionName
		},
		success:function(data){
			if(data.code==0){
				$("#msg3").html(data.code+","+data.id+","+data.pwd+","+data.name+","+data.email+","+data.type);
				return false;
				
			}else if(data.code==1){
				$("#msg3").html(data.code+","+data.id+","+data.pwd+","+data.name+","+data.email+","+data.type);
				return false;
			}
			
		}
	});   
	
});
